3.2.25 \(\int \frac {a+c x^4}{(d+e x^2)^2} \, dx\) [125]

Optimal. Leaf size=74 \[ \frac {c x}{e^2}+\frac {\left (a+\frac {c d^2}{e^2}\right ) x}{2 d \left (d+e x^2\right )}-\frac {\left (3 c d^2-a e^2\right ) \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{2 d^{3/2} e^{5/2}} \]

[Out]

c*x/e^2+1/2*(a+c*d^2/e^2)*x/d/(e*x^2+d)-1/2*(-a*e^2+3*c*d^2)*arctan(x*e^(1/2)/d^(1/2))/d^(3/2)/e^(5/2)

________________________________________________________________________________________

Rubi [A]
time = 0.03, antiderivative size = 74, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {1172, 396, 211} \begin {gather*} -\frac {\left (3 c d^2-a e^2\right ) \text {ArcTan}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{2 d^{3/2} e^{5/2}}+\frac {x \left (a+\frac {c d^2}{e^2}\right )}{2 d \left (d+e x^2\right )}+\frac {c x}{e^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + c*x^4)/(d + e*x^2)^2,x]

[Out]

(c*x)/e^2 + ((a + (c*d^2)/e^2)*x)/(2*d*(d + e*x^2)) - ((3*c*d^2 - a*e^2)*ArcTan[(Sqrt[e]*x)/Sqrt[d]])/(2*d^(3/
2)*e^(5/2))

Rule 211

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]/a)*ArcTan[x/Rt[a/b, 2]], x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rule 396

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_)), x_Symbol] :> Simp[d*x*((a + b*x^n)^(p + 1)/(b*(n*(
p + 1) + 1))), x] - Dist[(a*d - b*c*(n*(p + 1) + 1))/(b*(n*(p + 1) + 1)), Int[(a + b*x^n)^p, x], x] /; FreeQ[{
a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && NeQ[n*(p + 1) + 1, 0]

Rule 1172

Int[((d_) + (e_.)*(x_)^2)^(q_)*((a_) + (c_.)*(x_)^4)^(p_.), x_Symbol] :> With[{Qx = PolynomialQuotient[(a + c*
x^4)^p, d + e*x^2, x], R = Coeff[PolynomialRemainder[(a + c*x^4)^p, d + e*x^2, x], x, 0]}, Simp[(-R)*x*((d + e
*x^2)^(q + 1)/(2*d*(q + 1))), x] + Dist[1/(2*d*(q + 1)), Int[(d + e*x^2)^(q + 1)*ExpandToSum[2*d*(q + 1)*Qx +
R*(2*q + 3), x], x], x]] /; FreeQ[{a, c, d, e}, x] && NeQ[c*d^2 + a*e^2, 0] && IGtQ[p, 0] && LtQ[q, -1]

Rubi steps

\begin {align*} \int \frac {a+c x^4}{\left (d+e x^2\right )^2} \, dx &=\frac {\left (a+\frac {c d^2}{e^2}\right ) x}{2 d \left (d+e x^2\right )}-\frac {\int \frac {-a+\frac {c d^2}{e^2}-\frac {2 c d x^2}{e}}{d+e x^2} \, dx}{2 d}\\ &=\frac {c x}{e^2}+\frac {\left (a+\frac {c d^2}{e^2}\right ) x}{2 d \left (d+e x^2\right )}+\frac {\left (a-\frac {3 c d^2}{e^2}\right ) \int \frac {1}{d+e x^2} \, dx}{2 d}\\ &=\frac {c x}{e^2}+\frac {\left (a+\frac {c d^2}{e^2}\right ) x}{2 d \left (d+e x^2\right )}+\frac {\left (a-\frac {3 c d^2}{e^2}\right ) \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{2 d^{3/2} \sqrt {e}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.03, size = 78, normalized size = 1.05 \begin {gather*} \frac {c x}{e^2}+\frac {\left (c d^2+a e^2\right ) x}{2 d e^2 \left (d+e x^2\right )}-\frac {\left (3 c d^2-a e^2\right ) \tan ^{-1}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )}{2 d^{3/2} e^{5/2}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + c*x^4)/(d + e*x^2)^2,x]

[Out]

(c*x)/e^2 + ((c*d^2 + a*e^2)*x)/(2*d*e^2*(d + e*x^2)) - ((3*c*d^2 - a*e^2)*ArcTan[(Sqrt[e]*x)/Sqrt[d]])/(2*d^(
3/2)*e^(5/2))

________________________________________________________________________________________

Maple [A]
time = 0.12, size = 70, normalized size = 0.95

method result size
default \(\frac {c x}{e^{2}}+\frac {\frac {\left (a \,e^{2}+c \,d^{2}\right ) x}{2 d \left (e \,x^{2}+d \right )}+\frac {\left (a \,e^{2}-3 c \,d^{2}\right ) \arctan \left (\frac {e x}{\sqrt {d e}}\right )}{2 d \sqrt {d e}}}{e^{2}}\) \(70\)
risch \(\frac {c x}{e^{2}}+\frac {\left (a \,e^{2}+c \,d^{2}\right ) x}{2 d \,e^{2} \left (e \,x^{2}+d \right )}-\frac {\ln \left (e x +\sqrt {-d e}\right ) a}{4 \sqrt {-d e}\, d}+\frac {3 d \ln \left (e x +\sqrt {-d e}\right ) c}{4 e^{2} \sqrt {-d e}}+\frac {\ln \left (-e x +\sqrt {-d e}\right ) a}{4 \sqrt {-d e}\, d}-\frac {3 d \ln \left (-e x +\sqrt {-d e}\right ) c}{4 e^{2} \sqrt {-d e}}\) \(133\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((c*x^4+a)/(e*x^2+d)^2,x,method=_RETURNVERBOSE)

[Out]

c*x/e^2+1/e^2*(1/2*(a*e^2+c*d^2)/d*x/(e*x^2+d)+1/2*(a*e^2-3*c*d^2)/d/(d*e)^(1/2)*arctan(e*x/(d*e)^(1/2)))

________________________________________________________________________________________

Maxima [A]
time = 0.49, size = 62, normalized size = 0.84 \begin {gather*} c x e^{\left (-2\right )} - \frac {{\left (3 \, c d^{2} - a e^{2}\right )} \arctan \left (\frac {x e^{\frac {1}{2}}}{\sqrt {d}}\right ) e^{\left (-\frac {5}{2}\right )}}{2 \, d^{\frac {3}{2}}} + \frac {{\left (c d^{2} + a e^{2}\right )} x}{2 \, {\left (d x^{2} e^{3} + d^{2} e^{2}\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^4+a)/(e*x^2+d)^2,x, algorithm="maxima")

[Out]

c*x*e^(-2) - 1/2*(3*c*d^2 - a*e^2)*arctan(x*e^(1/2)/sqrt(d))*e^(-5/2)/d^(3/2) + 1/2*(c*d^2 + a*e^2)*x/(d*x^2*e
^3 + d^2*e^2)

________________________________________________________________________________________

Fricas [A]
time = 0.37, size = 215, normalized size = 2.91 \begin {gather*} \left [\frac {4 \, c d^{2} x^{3} e^{2} + 6 \, c d^{3} x e + 2 \, a d x e^{3} + {\left (3 \, c d^{2} x^{2} e + 3 \, c d^{3} - a x^{2} e^{3} - a d e^{2}\right )} \sqrt {-d e} \log \left (\frac {x^{2} e - 2 \, \sqrt {-d e} x - d}{x^{2} e + d}\right )}{4 \, {\left (d^{2} x^{2} e^{4} + d^{3} e^{3}\right )}}, \frac {2 \, c d^{2} x^{3} e^{2} + 3 \, c d^{3} x e + a d x e^{3} - {\left (3 \, c d^{2} x^{2} e + 3 \, c d^{3} - a x^{2} e^{3} - a d e^{2}\right )} \sqrt {d} \arctan \left (\frac {x e^{\frac {1}{2}}}{\sqrt {d}}\right ) e^{\frac {1}{2}}}{2 \, {\left (d^{2} x^{2} e^{4} + d^{3} e^{3}\right )}}\right ] \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^4+a)/(e*x^2+d)^2,x, algorithm="fricas")

[Out]

[1/4*(4*c*d^2*x^3*e^2 + 6*c*d^3*x*e + 2*a*d*x*e^3 + (3*c*d^2*x^2*e + 3*c*d^3 - a*x^2*e^3 - a*d*e^2)*sqrt(-d*e)
*log((x^2*e - 2*sqrt(-d*e)*x - d)/(x^2*e + d)))/(d^2*x^2*e^4 + d^3*e^3), 1/2*(2*c*d^2*x^3*e^2 + 3*c*d^3*x*e +
a*d*x*e^3 - (3*c*d^2*x^2*e + 3*c*d^3 - a*x^2*e^3 - a*d*e^2)*sqrt(d)*arctan(x*e^(1/2)/sqrt(d))*e^(1/2))/(d^2*x^
2*e^4 + d^3*e^3)]

________________________________________________________________________________________

Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 138 vs. \(2 (68) = 136\).
time = 0.25, size = 138, normalized size = 1.86 \begin {gather*} \frac {c x}{e^{2}} + \frac {x \left (a e^{2} + c d^{2}\right )}{2 d^{2} e^{2} + 2 d e^{3} x^{2}} - \frac {\sqrt {- \frac {1}{d^{3} e^{5}}} \left (a e^{2} - 3 c d^{2}\right ) \log {\left (- d^{2} e^{2} \sqrt {- \frac {1}{d^{3} e^{5}}} + x \right )}}{4} + \frac {\sqrt {- \frac {1}{d^{3} e^{5}}} \left (a e^{2} - 3 c d^{2}\right ) \log {\left (d^{2} e^{2} \sqrt {- \frac {1}{d^{3} e^{5}}} + x \right )}}{4} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x**4+a)/(e*x**2+d)**2,x)

[Out]

c*x/e**2 + x*(a*e**2 + c*d**2)/(2*d**2*e**2 + 2*d*e**3*x**2) - sqrt(-1/(d**3*e**5))*(a*e**2 - 3*c*d**2)*log(-d
**2*e**2*sqrt(-1/(d**3*e**5)) + x)/4 + sqrt(-1/(d**3*e**5))*(a*e**2 - 3*c*d**2)*log(d**2*e**2*sqrt(-1/(d**3*e*
*5)) + x)/4

________________________________________________________________________________________

Giac [A]
time = 3.49, size = 62, normalized size = 0.84 \begin {gather*} c x e^{\left (-2\right )} - \frac {{\left (3 \, c d^{2} - a e^{2}\right )} \arctan \left (\frac {x e^{\frac {1}{2}}}{\sqrt {d}}\right ) e^{\left (-\frac {5}{2}\right )}}{2 \, d^{\frac {3}{2}}} + \frac {{\left (c d^{2} x + a x e^{2}\right )} e^{\left (-2\right )}}{2 \, {\left (x^{2} e + d\right )} d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^4+a)/(e*x^2+d)^2,x, algorithm="giac")

[Out]

c*x*e^(-2) - 1/2*(3*c*d^2 - a*e^2)*arctan(x*e^(1/2)/sqrt(d))*e^(-5/2)/d^(3/2) + 1/2*(c*d^2*x + a*x*e^2)*e^(-2)
/((x^2*e + d)*d)

________________________________________________________________________________________

Mupad [B]
time = 4.44, size = 68, normalized size = 0.92 \begin {gather*} \frac {c\,x}{e^2}+\frac {\mathrm {atan}\left (\frac {\sqrt {e}\,x}{\sqrt {d}}\right )\,\left (a\,e^2-3\,c\,d^2\right )}{2\,d^{3/2}\,e^{5/2}}+\frac {x\,\left (c\,d^2+a\,e^2\right )}{2\,d\,\left (e^3\,x^2+d\,e^2\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + c*x^4)/(d + e*x^2)^2,x)

[Out]

(c*x)/e^2 + (atan((e^(1/2)*x)/d^(1/2))*(a*e^2 - 3*c*d^2))/(2*d^(3/2)*e^(5/2)) + (x*(a*e^2 + c*d^2))/(2*d*(d*e^
2 + e^3*x^2))

________________________________________________________________________________________